package cn.silver.module.system.controller;

import cn.silver.framework.mybatis.controller.DataController;
import cn.silver.module.system.domain.SysPost;
import cn.silver.module.system.bean.PostBean;
import cn.silver.module.system.param.PostParam;
import cn.silver.module.system.service.ISysPostService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 岗位信息操作处理
 *
 * @author Silver Zhou
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "系统管理-岗位管理")
@RequestMapping("/system/post")
public class SysPostController extends DataController<ISysPostService, SysPost, PostParam, PostBean> {

    @Override
    @Resource
    public void setBaseService(ISysPostService baseService) {
        this.setCode("system:post");
        this.setTitle("系统管理-岗位管理");
        this.baseService = baseService;
    }
}
